package com.bcxj.serviceorder.client;

import com.bcxj.internalcommon.dto.ResponseResult;
import com.bcxj.internalcommon.entity.Car;
import com.bcxj.internalcommon.response.OrderDriverResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * ClassName: ServiceDriverUserClient
 * Package: com.bcxj.serviceorder.client
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/11/13 11:21
 * @Version 1.0
 * @Since 1.0
 */
@FeignClient("service-driver-user")
public interface ServiceDriverUserClient {
    @GetMapping("/city-driver/is-alailable-driver")
    ResponseResult<Boolean> isAlailableDriver(@RequestParam String cityCode);

    @GetMapping("/get-available-driver/{carId}")
    public ResponseResult<OrderDriverResponse> getAvailableDriver(@PathVariable String carId);

    @GetMapping("/car")
    ResponseResult<Car> getCar(@RequestParam("carId") String carId);
}
